interfaces/prompting: handle unsupported xattrs
authorZygmunt Krynicki <me@zygoon.pl>
Thu, 21 Aug 2025 18:41:55 +0000 (18:41 +0000)
committerZygmunt Krynicki <me@zygoon.pl>
Thu, 21 Aug 2025 20:46:02 +0000 (20:46 +0000)
commit656c50b5f6299394e9084b4a0e03cbb362625332
tree8281f7699dde0f6d103b16f0b87670b9f979b648
parent25f8320b9960589a1084af44eaf55e5e7c530973
interfaces/prompting: handle unsupported xattrs

This happens in Debian build infrastructure:
```
FAIL: requestrules_test.go:748: requestrulesSuite.TestReadOrAssignUserSessionID

requestrules_test.go:765:
    c.Assert(err, IsNil)
... value syscall.Errno = 0x5f ("operation not supported")
```

Most likely the file system under /run is not a tmpfs or is restricted by a
sandbox of some sort. Allow tests to detect this condition and skip certain
parts.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0010-interfaces-prompting-handle-unsupported-xattrs.patch
interfaces/prompting/requestrules/requestrules_test.go